<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a="http://richfaces.org/a4j"
    template="/layout/admin_template.xhtml">

    <ui:define name="body">
    	<h:form>
    		<rich:panel id="e_id">
    			<f:facet name="header"><h:outputText value="#{messages.e_item_type_msg}" /></f:facet>
	    		<h:commandButton value="#{messages.back_msg}" action="item_type" immediate="true"/>
	    		<rich:spacer width="10" />
	    		<h:commandButton value="#{messages.save_msg}" action="#{kItemTypeManager.save()}" />
	    		<br />
	    		<table>
	    			<tr>
	    				<td>
				    		<ui:include src="/pages/in/k_translate.xhtml" >
				    			<ui:param name="item" value="#{kItemTypeManager.itemType}" />
				    		</ui:include>
	    				</td>
	    			</tr>
	    		</table>
	    		<table>
					<tr>
	    				<td>
	    					<h:outputText value="#{messages.color_msg}" />
	    				</td>
	    				<td>
	    					<rich:listShuttle targetValue="#{kItemTypeManager.scolor}"  sourceValue="#{kItemTypeManager.acolor}" 
	    						var="e"
	    						targetCaptionLabel="#{messages.selected_msg}"
	    						sourceCaptionLabel="#{messages.available_msg}"
	    						converter="org.jboss.seam.ui.EntityConverter" > 
	    						<rich:column>
	    							<h:outputText value="#{e.getName(klang)}" />
	    						</rich:column>
					        </rich:listShuttle>
	    				</td>
	    			</tr>
  						<tr>
	    				<td>
	    					<h:outputText value="#{messages.size_msg}" />
	    				</td>
	    				<td>
	    					<rich:listShuttle targetValue="#{kItemTypeManager.ssize}"  sourceValue="#{kItemTypeManager.asize}" 
	    						var="e"
	    						targetCaptionLabel="#{messages.selected_msg}"
	    						sourceCaptionLabel="#{messages.available_msg}"
	    						converter="org.jboss.seam.ui.EntityConverter" > 
	    						<rich:column>
	    							<h:outputText value="#{e.code}" />
	    						</rich:column>
					        </rich:listShuttle>
	    				</td>
	    			</tr>
  						<tr>
	    				<td>
	    					<h:outputText value="#{messages.material_msg}" />
	    				</td>
	    				<td>
	    					<rich:listShuttle targetValue="#{kItemTypeManager.smaterial}"  sourceValue="#{kItemTypeManager.amaterial}" 
	    						var="e"
	    						targetCaptionLabel="#{messages.selected_msg}"
	    						sourceCaptionLabel="#{messages.available_msg}"
	    						converter="org.jboss.seam.ui.EntityConverter" > 
	    						<rich:column>
	    							<h:outputText value="#{e.getName(klang)}" />
	    						</rich:column>
					        </rich:listShuttle>
	    				</td>
	    			</tr>
				</table>
    		</rich:panel>
    	</h:form>
    </ui:define>
</ui:composition>
